//
//  WJLastCell.m
//  WJBSApp
//
//  Created by dllo on 16/7/15.
//  Copyright © 2016年 王景伟. All rights reserved.
//
//显示个数的lable;

#import "WJLastCell.h"

@implementation WJLastCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.lable = [[WJBaseLable alloc]initWithFrame:CGRectZero dayBgColor:LABLECOLOR nightBgColor:FORBLACKCOLOR dayTextColor:BSGrayColor nightTextColor:BSWhiteColor];
        [self.contentView addSubview:self.lable];
        self.lable.font = [UIFont systemFontOfSize:14];

    }
    return self;
}

- (void)layoutSubviews
{
    NSDictionary *dic = @{NSFontAttributeName:[UIFont systemFontOfSize:14]};
    CGRect rect = [self.lable.text boundingRectWithSize:CGSizeMake(WIDTH, 1000) options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil];
    self.lable.frame = CGRectMake(0, 0, WIDTH, rect.size.height);
}




@end
